package pcjavanet.mobilesell.persistence;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import pcjavanet.mobilesell.model.Department;
import pcjavanet.mobilesell.model.DepartmentExample;
import pcjavanet.mobilesell.model.PageBean;

public interface DepartmentMapper {
    int countByExample(DepartmentExample example);

    int deleteByExample(DepartmentExample example);

    int deleteByPrimaryKey(Integer dbid);

    int insert(Department record);

    int insertSelective(Department record);

    List<Department> selectByExample(DepartmentExample example);

    Department selectByPrimaryKey(Integer dbid);

    int updateByExampleSelective(@Param("record") Department record, @Param("example") DepartmentExample example);

    int updateByExample(@Param("record") Department record, @Param("example") DepartmentExample example);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);

    List<Department> getOnePageBeans(@Param("example") DepartmentExample example, @Param("pageBean") PageBean pageBean);

    int getTotalRecords(@Param("example") DepartmentExample example, @Param("pageBean") PageBean pageBean);

    List<Department> selectByExamplePage(@Param("example") DepartmentExample example, @Param("pageBean") PageBean pageBean);
}